<?php
$this->pageTitle = Yii::app()->name . ' - ' . Yii::t("user", "Registration");
$this->breadcrumbs = array(
    Yii::t("UserModule.user", "Registration"),
);
?>

<section class="noRadius">
    <div class="container">
        <div class="row">
            <div class="span12"> 
                <ul class="breadcrumb">
                    <li class="previous"><a href="<?php echo SITE_URL; ?>">Home</a> /</li>
                    <li><a href="javascript:void(0)">Registration</a></li>
                </ul>
                    <div class="userElements">
                        <h3 class="addmarginB20"></h3>
                        <div class="common whiteBg greenBor">
                            <div class="padding20px">                        	
                                <a class="fbLogin" href="<?php echo baseUrl(); ?>hybridauth/default/login/?oauth_provider=facebook"><img src="<?php echo ThemePath(); ?>/images/fblogin-btn.png"></a>   
                                <a class="fbLogin" href="<?php echo baseUrl(); ?>hybridauth/default/login/?provider=google"><img src="<?php echo ThemePath(); ?>/images/gmaillogin-btn.png"></a>
                                <!--<a class="fbLogin" href="<?php echo baseUrl(); ?>hybridauth/default/login/?provider=twitter"><img src="<?php echo ThemePath(); ?>/images/button-twitter.png" width="250px" style="height:54px;"></a>-->
                            </div>                    	
                        </div>
                        <?php if (Yii::app()->user->hasFlash('registration')): ?>
                    <div class="padding20px addmarginB30 whiteBg greenBor">
                        <div class="success">
                            <?php echo Yii::app()->user->getFlash('registration'); ?>
                        </div></div>
                <?php else: ?>
                        <div class="common whiteBg greenBor">
                            <div class="formElements">
                                <div class="padding20px">
                                    <?php echo CHtml::beginForm(); ?>
                                    <fieldset>
                                        <p class="note"><?php echo Yii::t("UserModule.user", 'Fields with <span class="required">*</span> are required.'); ?></p>
                                        <div class="errorMessage">
                                            <?php echo CHtml::errorSummary($form); ?>
                                        </div>
                                        <div class="col-3">
                                            <div class="common">
                                                <div class="col col1">
                                                    <label>Email Address <span class="required">*</span></label>
                                                    <?php echo CHtml::activeTextField($form, 'username', array('class' => 'field')); ?>
                                                </div>
                                                <div class="clear"></div>
                                            </div>
                                            <div class="common">
                                                <div class="col col1">
                                                    <label>Password<span class="required">*</span></label>
                                                    <?php echo CHtml::activePasswordField($form, 'password', array('class' => 'field', 'type' => 'password')); ?>
                                                </div>
                                                <div class="clear"></div>
                                            </div>
                                            <div class="common">
                                                <div class="col col1">
                                                    <label>Confirm Password<span class="required">*</span></label>
                                                    <?php echo CHtml::activePasswordField($form, 'verifyPassword', array('class' => 'field')); ?>
                                                </div>

                                                <div class="clear"></div>
                                            </div>
                                            <div class="common flatui">
                                                <?php echo CHtml::CheckBox('RegistrationForm[issubscribe]', false, array('value' => '1', 'autocomplete' => 'off')); ?><label><?php echo Message::SUBSCRIVE_NEWS_LETTER; ?></label>
                                            </div> 
                                            <?php echo CHtml::submitButton(Yii::t("UserModule.user", "Sign Up"), array('class' => 'btn twoBtn')); ?>

                                            <?php echo CHtml::link('Already a Member? Login', $this->createAbsoluteUrl('user/login'), array('class' => 'btn')); ?>

                                            <div class="clear"></div>                                     
                                        </div>
                                    </fieldset>
                                    <?php echo CHtml::endForm(); ?>   
                                </div>
                            </div>                    	
                        </div>

                    </div>  <?php endif; ?>              

            </div></div></div></section>

<script type="text/javascript">
    jQuery(document).ready(function() {
        $(".flatui").fancyfields();
        $(".customSBDemo").fancyfields({customScrollBar: false});
        $("#demoReset").click(function() {
            $(".customSBDemo").fancyfields("reset");
        });
    });

</script>





